﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HookupAppForm.Dto
{
    public class CreateRoleDto
    {
        [Required]
        public string Name { get; set; }

        [Required]
        public string DisplayName { get; set; }

        public string NormalizedName { get; set; }
        public string Description { get; set; }

        public List<string> GrantedPermissions { get; set; }
    }
    public class RoleDto
    {
        public int Id { get; set; }
        [Required]
        public string Name { get; set; }

        [Required]
        public string DisplayName { get; set; }

        public string NormalizedName { get; set; }

        public string Description { get; set; }

        public List<string> GrantedPermissions { get; set; }
    }
    public class PermissionDto
    {
        public long Id { get; set; }
        public string Name { get; set; }

        public string DisplayName { get; set; }

        public string Description { get; set; }
    }
}
